package name.elftesting.vncelf;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.border.BevelBorder;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;

import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.fife.ui.rsyntaxtextarea.SyntaxConstants;

public class SyntaxTextArea implements HyperlinkListener, SyntaxConstants {

	@Override
	public void hyperlinkUpdate(HyperlinkEvent e) {
		// TODO Auto-generated method stub

	}
	RSyntaxTextArea textArea=null;
	RSyntaxTextArea logArea=null;
	public RSyntaxTextArea createTextArea() {
		 textArea = new RSyntaxTextArea();
		textArea.setCaretPosition(0);

		textArea.addHyperlinkListener(this);
		textArea.requestFocusInWindow();
		textArea.setMarkOccurrences(true);
		textArea.setTextAntiAliasHint("VALUE_TEXT_ANTIALIAS_ON");
		textArea.setSyntaxEditingStyle(SYNTAX_STYLE_JAVA);
	
		return textArea;
	}

	public RSyntaxTextArea createLogArea() {
		logArea = new RSyntaxTextArea();
		logArea.setCaretPosition(0);

		logArea.addHyperlinkListener(this);
		logArea.requestFocusInWindow();
		logArea.setMarkOccurrences(true);
		logArea.setTextAntiAliasHint("VALUE_TEXT_ANTIALIAS_ON");
		logArea.setSyntaxEditingStyle(SYNTAX_STYLE_NONE);

		return logArea;
	}


}
